<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JSONUtil</title>
</head>
<body>

<script src="../../../lib/baitu.min.js"></script>
<script>
    const {JSONUtil} = Baitu

    const str = `{
    "name": "Alice",
    "age": 30
}
some non-json text
{
    "name": "Bob",
    "age": 25
}
more non-json text
{
    "name": "Charlie",
    "age": 35
}`;

    console.log(JSONUtil.getJSONFromString(str))
</script>
</body>
</html>
